package com.mallcloud.mall.product.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

@ApiModel(value = "SpuSkuAttrValueModel", description = "商品sku销售属性关联信息")
@Data
@TableName(value = "P_SPU_SKU_ATTR_VALUE", autoResultMap = true)
public class SpuSkuAttrValueModel extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "商品sku销售属性关联信息id")
    private Long spuSkuAttrId;

    @ApiModelProperty(value = "SPU ID")
    private Long spuId;

    @ApiModelProperty(value = "SKU ID")
    private Long skuId;

    @ApiModelProperty(value = "销售属性ID")
    private Long attrId;

    @ApiModelProperty(value = "销售属性名称")
    private String attrName;

    @ApiModelProperty(value = "销售属性值ID")
    private Long attrValueId;

    @ApiModelProperty(value = "销售属性值")
    private String attrValueName;

    @ApiModelProperty(value = "状态 1:enable, 0:disable")
    private Boolean status;
}
